<?php
/**
 * 应用程序启动脚本
 */
global $g_boot_time;
$g_boot_time = microtime ( true );
$app_config = require (dirname ( __FILE__ ) . '/../config/boot.php');
require $app_config ['QEEPHP_DIR'] . '/q.php';
require $app_config ['APP_DIR'] . '/myapp.php';
if (isset($argv))
{
	$param = $argv;
	unset($param[0]);
	$_GET['controller'] = 'interface';
	$_GET['action'] = 'Sendmail';
}
$ret = MyApp::instance ( $app_config )->dispatching ();
if (is_string ( $ret ))
	echo $ret;

return $ret;